from base import Base
from selenium.webdriver.common.by import By
from time import sleep
class GuanZhuPage(Base):
    dianjiguanzhuyemian=(By.ID,'com.kongfz.app:id/lav_2')
    dianjituaijian=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout[2]/android.view.ViewGroup/android.view.ViewGroup/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.HorizontalScrollView/android.widget.FrameLayout/android.widget.LinearLayout[2]/android.widget.TextView[3]')
    dianjiguanzhu='new UiSelector().android.widget.ImageView[@resourceId="com.kongfz.app:id/lottie_attention"]'
    dy=(By.XPATH,'//android.widget.TextView[@resourceId="com.kongfz.app:id/tv_content"]')
    dy2=(By.XPATH,'//android.widget.TextView[@text="#访古记# 小伙伴们南浔古镇溜达一天竟然还觉得不过瘾，到集合地提出去看著名的三桥，雨下了起来，大家兴致未减…驱车前往…雨越下越大…雨刷器抽疯一样舞动，还好，到地儿雨住，可实在有点失望呢…桥是古老的，但周遭各种不搭…而且以为能登高远眺三桥同框，结果文昌阁已经关门，也就是就到这里，到这里啦…"]')
    def guanzhuyewu(self):
        self.find_ele(self.dianjiguanzhuyemian).click()
        sleep(2)
        self.find_ele(self.dianjituaijian).click()
        sleep(2)
        self.find_ele(self.dianjiguanzhu).click()
        sleep(2)